import request from '@/utils/request'

// 查询列表
export function listGbzcb(query) {
  return request({
    url: '/gbzcbproject/list',
    method: 'get',
    params: query
  })
}
// 查询列表，已完成项目按照行政区选择
export function listGbzcbcx(query) {
  return request({
    url: '/gbzcbproject/listcompletexzq',
    method: 'get',
    params: query
  })
}
// 查询列表
export function listGbzcbSimple(query) {
  return request({
    url: '/gbzcbproject/listSimple',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getGbzcb(id) {
  return request({
    url: '/gbzcbproject/' + id,
    method: 'get'
  })
}

// 新增
export function addGbzcb(data) {
  return request({
    url: '/gbzcbproject',
    method: 'post',
    data: data
  })
}

// 修改
export function updateGbzcb(data) {
  return request({
    url: '/gbzcbproject',
    method: 'put',
    data: data
  })
}

// 删除
export function delGbzcb(id) {
  return request({
    url: '/gbzcbproject/' + id,
    method: 'delete'
  })
}

// 导出
export function exportGbzcb(query) {
  return request({
    url: '/gbzcbproject/export',
    method: 'get',
    params: query
  })
}
